#include "visbaselayout.h"
#include "visbaseelement.h"

VisBaseLayout::VisBaseLayout( QObject *parent ) :
    QObject(parent)
{

}

VisBaseLayout::VisBaseLayout( QList< QPointer< VisBaseElement > > e, QObject *parent) :
    QObject(parent)
{
    elementsToLayout.append(e);
}

//VisBaseLayout( const VisBaseLayout& other ) :
//    QObject(other.parent) , elementsToLayout( other.getElements() )
//{

//}


void VisBaseLayout::addElement(QPointer<VisBaseElement> e)
{
    elementsToLayout << e;
}

void VisBaseLayout::addElements(QList<QPointer<VisBaseElement> > e)
{
    elementsToLayout.append( e );
}


void VisBaseLayout::process()
{
    qDebug() << "generic layout process " << endl;
    emit(finished());
}
